# Copyright (C) 2024 - 2025 Advanced Micro Devices, Inc.  All rights reserved.
# SPDX-License-Identifier: MIT

if(NOT("${CMAKE_MACHINE}" STREQUAL "ZynqMP"))
  add_subdirectory(core)
endif()
if(("${CMAKE_MACHINE}" STREQUAL "Versal"))
  add_subdirectory(versal)
endif()
if("${CMAKE_MACHINE}" STREQUAL "VersalNet")
    if("${CMAKE_SUBMACHINE}" STREQUAL "VersalNet")
        add_subdirectory(versal_net)
    elseif("${CMAKE_SUBMACHINE}" STREQUAL "Versal_2VE_2VM")
        add_subdirectory(versal_2ve_2vm)
    endif()
endif()
if("${CMAKE_MACHINE}" STREQUAL "ZynqMP")
   add_subdirectory(zynqmp)
endif()
if("${CMAKE_MACHINE}" STREQUAL "spartanuplus")
   add_subdirectory(spartanup)
endif()
